package com.xique.park.api;

import com.xique.common.core.constant.ServiceNameConstants;
import com.xique.common.core.domain.R;
import com.xique.park.api.factory.RemoteCouponFallbackFactory;
import com.xique.park.api.request.RemoteReceiveCouponRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 车场订单接口
 * @author shd
 * @date 2022/1/12 9:44
 */
@FeignClient(contextId = "RemoteCouponService", value = ServiceNameConstants.PARK_BIZ_SERVICE, fallbackFactory = RemoteCouponFallbackFactory.class)
public interface RemoteCouponService {

    /**
     * 领取优惠券
     * @author shd
     * @date 2022/1/12 14:29
     * @param request
     * @return com.xique.common.core.domain.R<java.lang.Boolean>
     */
    @PostMapping("couponPp/receiveCoupon")
    R<Boolean> receiveCoupon(@RequestBody RemoteReceiveCouponRequest request);
}
